package com.ztao.api.schedule;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.schedule.dto.TaskDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-schedule")
public interface ScheduleClientApi {

    @PostMapping("/api/v1/task/add")
    ResponseResult addTask(@RequestBody TaskDto taskDto);

    @GetMapping("/api/v1/task/poll/{type}")
    ResponseResult poll(@PathVariable("type") int type);
    
}